<?php

namespace common\models\bill;

use Yii;

/**
 * This is the model class for table "{{%bill_type_route}}".
 *
 * @property int $id
 * @property int $type_id 类型ID
 * @property string $route 路由名称
 * @property int $level 路由级别
 * @property int $node_type 节点类型
 * @property string $segment_begin 起始
 * @property string $segment_end 结束
 * @property int $status 状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 * @property int $deleted_at 删除时间
 */
class BillTypeRoute extends \common\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%bill_type_route}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['type_id', 'level', 'node_type', 'status', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
            [['route'], 'string', 'max' => 255],
            [['segment_begin', 'segment_end'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'type_id' => '类型ID',
            'route' => '路由名称',
            'level' => '路由级别',
            'node_type' => '节点类型',
            'segment_begin' => '起始',
            'segment_end' => '结束',
            'status' => '状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
            'deleted_at' => '删除时间',
        ];
    }
}
